//
//  BJShowEmptyView.m
//  Aschat
//
//  Created by luwei2023 on 2023/5/5.
//  Copyright © 2023 luwei. All rights reserved.
//

#import "BJShowEmptyView.h"
#define CustomImageWidthHeight 200
@implementation BJShowEmptyView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        
        //1、图片
        self.statusIcon = [[UIImageView alloc]init];
        self.statusIcon.contentMode = UIViewContentModeScaleAspectFit;
        [self.statusIcon setImage:[UIImage imageNamed:@"ic_msg_empty"]];
        [self addSubview:self.statusIcon];
        [self.statusIcon mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self);
            make.centerY.equalTo(self).offset(-CustomImageWidthHeight/2);
            make.width.mas_equalTo(CustomImageWidthHeight);
            make.height.mas_equalTo(CustomImageWidthHeight);
        }];
    }
    return self;
}

@end
